<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>企业注册</title>
<link href="<%=basePath %>css/reset.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
	
*{
font-family: '微软雅黑';font-size: 15px;
}
</style>
<script type="text/javascript">
function replaceUpload(obj){
	//alert(111);
	 if(obj.checked==true){
           $("#uploadImage").show();
           $("#imagtr").hide();
		}else{
			 $("#uploadImage").hide();
			 $("#imagtr").show();
			}
}
$('#updateModal').modal().css({
    width: '600px',
    'margin-left': function () {
       return -($(this).width() / 2);
   }
});
</script>
<sb:head/>
</head>
<body>
<form action="<%=basePath %>com/com_companySave.action" method="post">
<s:hidden name="company.comId"  value="%{company.comId}"></s:hidden>
<s:hidden name="company.comImage" id="imageUrl" value="%{company.comImage}"></s:hidden>
<div style="width: 600px;height: 500px;background-color: #fafcfe;">
<table>
<tr height="40px;">
<td width="110px">企业名称<span style="color:red">*</span>：</td>
<td width="370px"><s:textfield  name="company.comName" value="%{company.comName}" required="true" placeholder="请输入企业名称" theme="simple" style="width:60%;height:90%"></s:textfield></td>
<td width="100px;"></td>
</tr>
<tr height="40px;">
<td width="110px">企业邮箱<span style="color:red">*</span>：</td>
<td width="370px"><s:textfield  name="company.comEmail" value="%{company.comEmail}" required="true" placeholder="请输入企业邮箱" theme="simple" style="width:60%;height:90%"></s:textfield></td>
<td width="100px;"></td>
</tr>
<tr height="40px;">
<td width="110px">企业类型<span style="color:red">*</span>：</td>
<td width="370px"><s:select  name="comtypeId" list="comType" id="comType" listKey="comtypeId" listValue="comtypeName" theme="simple" style="width:60%;height:90%"></s:select><a href="javascript:;" class="tip ib" title='自定义填写内容，如：客户签订合同编号、发票编号等'>tips</a></td>
<td width="100px;"></td>
</tr>
<tr height="40px;">
<td width="110px">输入密码<span style="color:red">*</span>：</td>
<td width="370px"><s:password name="company.comPwd" placeholder="请输入密码" required="true" maxlength="10" theme="simple" style="width:60%;height:90%"></s:password><a href="javascript:;" class="tip ib" title='自定义填写内容，如：客户签订合同编号、发票编号等'>tips</a></td>
<td width="100px;"></td>
</tr>
<tr height="40px;">
<td width="110px">密码确认<span style="color:red">*</span>：</td>
<td width="370px"><s:password  placeholder="请再次输入密码" required="true" maxlength="10" theme="simple" style="width:60%;height:90%"></s:password><a href="javascript:;" class="tip ib" title='自定义填写内容，如：客户签订合同编号、发票编号等'>tips</a></td>
<td width="100px;"></td>
</tr>
<tr height="40px;">
<td width="110px">地址<span style="color:red">*</span>：</td>
<td width="370px"><jsp:include page="/page/common/address.jsp"></jsp:include><a href="javascript:;"  class="tip ib" title='自定义填写内容，如：客户签订合同编号、发票编号等'>tips</a></td>
<td width="100px;"></td>
</tr>
<tr height="40px;">
<td width="110px">企业头像<span style="color:red">*</span>：</td>
<td width="370px"><input type="checkbox" id="repUpload" onclick="replaceUpload(this)"/>重新上传图片</td>
<td width="100px;"></td>
</tr>
<tr height="100px;" >
<td width="110px"></td>
<td width="370px"><img id="imagtr" alt="" width="100px;" height="100px;" src="<%=basePath%>upload/<s:property value="company.comImage"/>"></td>
<td width="100px;"></td>
</tr>
<tr height="40px;" ></tr>
<tr height="40px;" style="margin-top:240px;">
<td width="110px">注 册 人<span style="color:red">*</span>：</td>
<td width="370px"><s:textfield name="company.comUser" value="%{company.comUser}" required="true" theme="simple" placeholder="请输入您的真实姓名" style="width:60%;height:90%"></s:textfield><a href="javascript:;" class="tip ib" title='自定义填写内容，如：客户签订合同编号、发票编号等'>tips</a></td>
<td width="100px;"></td>
</tr>
<tr height="40px;" >
<td width="110px">银行卡号<span style="color:red">*</span>：</td>
<td width="370px"><s:textfield  name="company.bankCard"  value="%{company.bankCard}" required="true" theme="simple" placeholder="请输入16.18.19位的银行卡号" style="width:60%;height:90%"></s:textfield><a href="javascript:;" class="tip ib" title='自定义填写内容，如：客户签订合同编号、发票编号等'>tips</a></td>
<td width="100px;"></td>
</tr>
<tr height="40px;" >
<td width="110px">最大利润<span style="color:red">*</span>：</td>
<td width="370px"><s:textfield name="company.profit" value="%{company.profit}" required="true" theme="simple" placeholder="请输入利润率" style="width:60%;height:90%"></s:textfield><span>%</span><a href="javascript:;" class="tip ib" title='自定义填写内容，如：客户签订合同编号、发票编号等'>tips</a></td>
<td width="100px;"></td>
</tr>
</table>
</div>
</form>
<s:if test="company.comId!=null">
<div id="uploadImage" style="top: 290px;left:120px; position:absolute;display: none;"><jsp:include page="/page/company/comHeadImage.jsp"></jsp:include></div>
</s:if>
</body>
</html>